package Eksamensporjekt1sem;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import java.awt.Font;


public class Resultater {

	private JFrame frmResultater;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Resultater window = new Resultater();
					window.frmResultater.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Resultater() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmResultater = new JFrame();
		frmResultater.setTitle("Rend og Hop Resultater");
		frmResultater.setBounds(100, 100, 477, 318);
		frmResultater.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		frmResultater.getContentPane().setLayout(null);
		
		table = new JTable();
		table.setShowVerticalLines(false);
		table.setFont(new Font("Tahoma", Font.PLAIN, 13));
		table.setBorder(new LineBorder(new Color(0, 0, 0)));
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{"Navn", "CPR.nr", "Tider", "Aktivitetsform", "Disciplin"},
				{"Medlem 1", "111111-1111", "1.00", "Konkurrence", "Rytme"},
				{"Medlem 2", "222222-2222", "2.00", "DGI-Gymnast", "-"},
				{"Medlem 3", "333333-3333", "3.00", "Konkurrence", "Zumba"},
				{null, null, null, null, null},
				{null, null, null, null, null},
				{null, null, null, null, null},
				{null, null, null, null, null},
				{null, null, null, null, null},
				{null, null, null, null, null},
			},
			new String[] {
				"New column", "New column", "New column", "New column", "New column"
			}
		));
		table.setBounds(33, 11, 404, 160);
		frmResultater.getContentPane().add(table);
		
		JButton btnTilfjTider = new JButton("Tilf\u00F8j tid(er)");
		btnTilfjTider.setBounds(334, 246, 103, 23);
		frmResultater.getContentPane().add(btnTilfjTider);
		
		JCheckBox chckbxNewCheckBox = new JCheckBox("");
		chckbxNewCheckBox.setBounds(7, 23, 21, 23);
		frmResultater.getContentPane().add(chckbxNewCheckBox);
		
		JCheckBox checkBox = new JCheckBox("");
		checkBox.setBounds(7, 55, 21, 23);
		frmResultater.getContentPane().add(checkBox);
		
		JCheckBox checkBox_1 = new JCheckBox("");
		checkBox_1.setBounds(7, 40, 21, 23);
		frmResultater.getContentPane().add(checkBox_1);
	}

	public JFrame getFrmResultater() {
		return frmResultater;
	}

	public void setFrmResultater(JFrame frmResultater) {
		this.frmResultater = frmResultater;
	}
}
